import icalendar
import urllib2

holidays = 'https://www.google.com/calendar/ical/nl.dutch%23holiday%40group.v.calendar.google.com/public/basic.ics'
testdata = 'http://localhost:8080/eventplanner/ical'
ical = icalendar.Calendar.from_ical(urllib2.urlopen(testdata).read())

counter = 0
for event in ical.walk():
    counter += 1
    if counter > 1:
        print 'UID: ' + event['UID']
        print 'Titel: ' + event['SUMMARY']
        print 'Omschr: ' + event['DESCRIPTION']
        print 'Datestamp: ' + str(event['DTSTAMP'].dt)
        print 'Start: ' + str(event['DTSTART'].dt)
        print 'End: ' + str(event['DTEND'].dt)
        print
